package com.henry.controller;

import com.henry.service.ProductService;
import com.henry.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-09-01 11:00
 */
@RestController
@RequestMapping("product")
public class ProductController {
    /*
    属性列表
    */
    @Autowired
    private ProductService productService;

    @RequestMapping("kjkc")
    public R update(@RequestParam("pid") Integer pid,
                    @RequestParam("number") Integer number){
        productService.kjkc(pid,number);
        return R.ok("");
    }


}
